package com.edu.hre.struts.form.recruit;

import java.util.ArrayList;
import java.util.List;

import org.apache.struts.action.ActionForm;
import org.apache.struts.util.LabelValueBean;

import com.edu.hre.common.entity.HrePageInfo;

public class VacancyListForm extends ActionForm {

	/**
	 * 
	 */
	private static final long serialVersionUID = 8696698650789509605L;

	private List<LabelValueBean> allJobTitles = new ArrayList<LabelValueBean>();
	private List<LabelValueBean> allStatuses = new ArrayList<LabelValueBean>();
	private List<VacancyForm> allVacancies = new ArrayList<VacancyForm>();
	
	private String nameKeyWord = "";
	private String managerKeyWord = "";
	
	private String selectedJobTitle = "";
	private String selectedStatus = "";
	
	private List<HrePageInfo> listPages = new ArrayList<HrePageInfo>();
	
	private String sortBy = null;
	private boolean isAsc = false;
	
	private int totalItems = 0;
	private int totalPage = 0;

	private boolean canDelete = false;
	private boolean canAdd = false;
	
	public String getSortBy() {
		return sortBy;
	}

	public void setSortBy(String sortBy) {
		this.sortBy = sortBy;
	}

	public boolean isAsc() {
		return isAsc;
	}

	public void setAsc(boolean isAsc) {
		this.isAsc = isAsc;
	}

	public VacancyListForm() {
	
	}
	
	public int getTotalPage() {
		return totalPage;
	}

	public void setTotalPage(int totalPage) {
		this.totalPage = totalPage;
	}

	public int getTotalItems() {
		return totalItems;
	}

	public void setTotalItems(int totalItems) {
		this.totalItems = totalItems;
	}

	public boolean isCanDelete() {
		return canDelete;
	}

	public void setCanDelete(boolean canDelete) {
		this.canDelete = canDelete;
	}

	public boolean isCanAdd() {
		return canAdd;
	}

	public void setCanAdd(boolean canAdd) {
		this.canAdd = canAdd;
	}

	public String getNameKeyWord() {
		return nameKeyWord;
	}

	public void setNameKeyWord(String nameKeyWord) {
		this.nameKeyWord = nameKeyWord;
	}

	public List<HrePageInfo> getListPages() {
		return listPages;
	}

	public void setListPages(List<HrePageInfo> listPages) {
		this.listPages = listPages;
	}

	public List<LabelValueBean> getAllJobTitles() {
		return allJobTitles;
	}

	public void setAllJobTitles(List<LabelValueBean> allJobTitles) {
		this.allJobTitles = allJobTitles;
	}

	public List<LabelValueBean> getAllStatuses() {
		return allStatuses;
	}

	public void setAllStatuses(List<LabelValueBean> allStatuses) {
		this.allStatuses = allStatuses;
	}

	public String getSelectedJobTitle() {
		return selectedJobTitle;
	}

	public void setSelectedJobTitle(String selectedJobTitle) {
		this.selectedJobTitle = selectedJobTitle;
	}

	public String getSelectedStatus() {
		return selectedStatus;
	}

	public void setSelectedStatus(String selectedStatus) {
		this.selectedStatus = selectedStatus;
	}

	public List<VacancyForm> getAllVacancies() {
		return allVacancies;
	}

	public void setAllVacancies(List<VacancyForm> allVacancies) {
		this.allVacancies = allVacancies;
	}

	public String getManagerKeyWord() {
		return managerKeyWord;
	}

	public void setManagerKeyWord(String managerKeyWord) {
		this.managerKeyWord = managerKeyWord;
	}
}
